cassette format
VCRやVCR.pyで読み書きできるフォーマット。
RubyのVCRとPythonのVCR.pyでは互換性がない(!!
code:cassette.yaml
command: 'schemathesis run http://localhost:8000/openapi.json --store-network-log cassette.yaml'
recorded_with: 'Schemathesis 2.4.1'
http_interactions:
- id: '1'
status: 'SUCCESS'
seed: '234690900641751568044503997757241782401'
elapsed: '0.003724'
recorded_at: '2020-09-26T15:11:30.358730'
request:
uri: 'http://localhost:8000/hello?age=0&name='
method: 'GET'
headers:
User-Agent:
- 'schemathesis/2.4.1'
Accept-Encoding:
- 'gzip, deflate'
Accept:
- '*/*'
Connection:
- 'keep-alive'
body:
encoding: 'utf-8'
base64_string: ''
response:
status:
code: '200'
message: 'OK'
headers:
date:
- 'Sat, 26 Sep 2020 06:11:30 GMT'
server:
- 'uvicorn'
content-length:
- '23'
content-type:
- 'application/json'
body:
encoding: 'utf8'
base64_string: 'eyJtZXNzYWdlIjoiSGVsbG8gKDApIn0='
http_version: '1.1'
- id: '2'
...